package StnNetworkResourcesNRMSystem;
/**
 * Generated from IDL enum "M3uaLinkStatusType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class M3uaLinkStatusType
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _UNESTABLISH = 0;
	public static final M3uaLinkStatusType UNESTABLISH = new M3uaLinkStatusType(_UNESTABLISH);
	public static final int _ESTABLISHED = 1;
	public static final M3uaLinkStatusType ESTABLISHED = new M3uaLinkStatusType(_ESTABLISHED);
	public static final int _INACTIVE = 2;
	public static final M3uaLinkStatusType INACTIVE = new M3uaLinkStatusType(_INACTIVE);
	public static final int _ACTIVE = 3;
	public static final M3uaLinkStatusType ACTIVE = new M3uaLinkStatusType(_ACTIVE);
	public int value()
	{
		return value;
	}
	public static M3uaLinkStatusType from_int(int value)
	{
		switch (value) {
			case _UNESTABLISH: return UNESTABLISH;
			case _ESTABLISHED: return ESTABLISHED;
			case _INACTIVE: return INACTIVE;
			case _ACTIVE: return ACTIVE;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _UNESTABLISH: return "UNESTABLISH";
			case _ESTABLISHED: return "ESTABLISHED";
			case _INACTIVE: return "INACTIVE";
			case _ACTIVE: return "ACTIVE";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected M3uaLinkStatusType(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
